/**
 * @ClassName Factory
 * @date 2021/2/8 10:11
 * @Version 1.0
 * @Description //TODO
 */

/**
 *@ClassName Factory
 *@date 2021/2/8 10:11
 *@Version 1.0
 *@Description //
 */
public class Factory {
    private static Factory factory;
    private Factory (){}
    private static synchronized Factory getInstance() {
        if (factory == null){
            return factory = new Factory();
        }
        return factory;
    }
}
